#ifndef ELEMENT_H
#define ELEMENT_H
#include<string>
using namespace std;

class IVisitor;
class IPlace{
public:
    IPlace(string name):m_PlaceName(name){}
    virtual ~IPlace(){}
    //接受参观者
    virtual void Accept(IVisitor *visitor)=0;
    //获取地名
    virtual string GetName(){
        return m_PlaceName;
    }
    //设置地名
    virtual void SetName(string name){
        m_PlaceName=name;
    }
protected:
    string m_PlaceName;
};
#endif // ELEMENT_H
